// 此文件用于处理请求
// 引入请求
import requests from "./Ajax";
import mockRequests from "./mockAjax";
// 三级菜单请求  请求url /api/product/getBaseCategoryList  请求类型 get 
// 将请求封装为一个函数,当发送请求时直接调用函数即可
export const resgetCategory=()=> requests.get('/product/getBaseCategoryList')
// banner请求 get   /mock/banner
export const resgetBanner=()=> mockRequests.get('/banner')
// floor请求  get   /mock/floor
export const resgetFloor=()=> mockRequests.get('/floor')
// search请求  post /api/list 传递参数params
export const resgetSearch=(params)=> requests({method:'post',data:params,url:'/list'})